package com.ldzg.blockwatcher.config.notify;

/**
 * @author zhangyinhang
 * 通知配置类
 */

import com.ldzg.blockwatcher.notify.enums.NotifyType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import static com.ldzg.blockwatcher.config.notify.NotifyProperties.CONFIG_PREFIX;

@Data
@Configuration
@ConfigurationProperties(prefix = CONFIG_PREFIX)
public class NotifyProperties {

    public static final String CONFIG_PREFIX = "block.notify";

    /**
     * 通知策略  默认策略 log 打印日志
     */
    private NotifyType type = NotifyType.LOG;

}
